double func(double x);